'use strict';

var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _class;

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _radium = require('radium');

var _radium2 = _interopRequireDefault(_radium);

var _RegisterForm = require('./RegisterForm');

var _RegisterForm2 = _interopRequireDefault(_RegisterForm);

var _IndexHeader = require('../common/IndexHeader');

var _IndexHeader2 = _interopRequireDefault(_IndexHeader);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var RegisterView = (0, _radium2.default)(_class = function (_React$Component) {
  _inherits(RegisterView, _React$Component);

  function RegisterView(props) {
    _classCallCheck(this, RegisterView);

    return _possibleConstructorReturn(this, (RegisterView.__proto__ || Object.getPrototypeOf(RegisterView)).call(this, props));
  }

  _createClass(RegisterView, [{
    key: 'render',
    value: function render() {
      var _ref;

      return _react2.default.createElement(
        'div',
        { style: { width: '100%', height: '100%', position: 'relative' } },
        _react2.default.createElement(_IndexHeader2.default, { router: this.context.router, selectedItem: '\u6CE8\u518C', location: this.props.location }),
        _react2.default.createElement(
          'div',
          { className: 'no-user-select', style: (_ref = { width: '100%', maxWidth: '550px', padding: '80px 10px 10px 10px', height: '100%', margin: 'auto' }, _defineProperty(_ref, 'height', '100%'), _defineProperty(_ref, 'display', 'table'), _defineProperty(_ref, 'tableLayout', 'fixed'), _ref) },
          _react2.default.createElement(
            'div',
            { className: 'row no-margin' },
            _react2.default.createElement(
              'h3',
              null,
              '\u5DE5\u4F5C\u66F4\u7B80\u5355\uFF0C\u9AD8\u6548'
            ),
            _react2.default.createElement(
              'div',
              null,
              '\u4E3A\u60A8\u7684\u4F01\u4E1A\u521B\u5EFA\u7801\u4E00\u4E00\u8D26\u6237'
            ),
            _react2.default.createElement(_RegisterForm2.default, { router: this.context.router, location: this.props.location })
          )
        )
      );
    }
  }]);

  return RegisterView;
}(_react2.default.Component)) || _class;

;

RegisterView.contextTypes = {
  router: _react2.default.PropTypes.object.isRequired
};

module.exports = RegisterView;